package com.zbkj.service.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PayeeMessageDTO {

    private String payeeCode;

    private String message;

    public static PayeeMessageDTO generate(String payeeCode) {
        PayeeMessageDTO payeeMessageDTO = new PayeeMessageDTO();
        payeeMessageDTO.setPayeeCode(payeeCode);
        return payeeMessageDTO;
    }

    public static PayeeMessageDTO generateEx(String message) {
        PayeeMessageDTO payeeMessageDTO = new PayeeMessageDTO();
        payeeMessageDTO.setMessage(message);
        return payeeMessageDTO;
    }

    public static PayeeMessageDTO generate(Integer payeeCode) {
        PayeeMessageDTO payeeMessageDTO = new PayeeMessageDTO();
        payeeMessageDTO.setPayeeCode(String.valueOf(payeeCode));
        return payeeMessageDTO;
    }

    public static PayeeMessageDTO generate(String payeeCode, String message) {
        PayeeMessageDTO payeeMessageDTO = new PayeeMessageDTO();
        payeeMessageDTO.setPayeeCode(payeeCode);
        payeeMessageDTO.setMessage(message);
        return payeeMessageDTO;
    }

    public static PayeeMessageDTO generate(Integer payeeCode, String message) {
        PayeeMessageDTO payeeMessageDTO = new PayeeMessageDTO();
        payeeMessageDTO.setPayeeCode(String.valueOf(payeeCode));
        payeeMessageDTO.setMessage(message);
        return payeeMessageDTO;
    }
}
